
#ifndef SUPPORTVERTEXPANEL_H
#define SUPPORTVERTEXPANEL_H

#include <BLine>
#include <BComboBox>
#include <BFloatSpinBox>
#include <BRoundHandler>
#include <BConearRestraint>
#include <BTextual>
#include <BWidget>

using namespace BWE;

class SupportVertexPanel : public BWidget
{
public:
	SupportVertexPanel();
	~SupportVertexPanel();

	void setShape(BShape* shape);
	BShape* shape();

	void setLength(BReal length);
	BReal length() const;

	void setVertex(const BVector& vertex);
	BVector vertex() const;

	void setRotation(BReal roll, BReal pitch, BReal yaw);
	void setRotation(const BVector& rotation);
	BVector rotation() const;

protected:
	void slotShapeComboBoxValueChanged(BObject* object, const BValue& value);
	void slotShapeRotationEditFinished(BObject* object, const BValue& value);

protected:
	BComboBox*			_shapeComboBox;
	BFloatSpinBox*		_lengthSpinBox;
	BFloatSpinBox*		_vertexXSpinBox;
	BFloatSpinBox*		_vertexYSpinBox;
	BFloatSpinBox*		_vertexZSpinBox;

	BFloatSpinBox*		_rotateRollSpinBox;
	BFloatSpinBox*		_rotatePitchSpinBox;
	BFloatSpinBox*		_rotateYawSpinBox;

};

#endif

